<template>
  <div class="father">
    <h3>父组件</h3>
    <div class="content">
    <Game>
      <template v-slot="prams">

        <ul>
          <li v-for="item in prams.youxi" :key="item.id">{{ item.name }}</li>
        </ul>
      </template>
    </Game>
    <Game>
      <template v-slot="prams">

        <ol>
          <li v-for="item in prams.youxi" :key="item.id">{{ item.name }}</li>
        </ol>
        </template>
    </Game>  
    <Game>
      <template v-slot="prams">
        <h3 v-for="item in prams.youxi" :key="item.id">{{ item.name }}</h3>
      </template>
    </Game>
    
    
    </div>
  </div>
</template>

<script setup lang="ts" name="Father">
  import { ref,reactive } from 'vue';
import Game from './Game.vue'
 
  let imgUrl = ref('https://z1.ax1x.com/2023/11/19/piNxLo4.jpg')
  let videoUrl = ref('http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4')

</script>

<style scoped>
  .father {
    background-color: rgb(165, 164, 164);
    padding: 20px;
    border-radius: 10px;
  }
  .content {
    display: flex;
    justify-content: space-evenly;
  }
  img,video {
    width: 100%;
  }
</style>